package com.bestcem.xm.common.core.config.delaymq.enums;

import com.bestcem.xm.common.core.enums.CommonEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * mq消息发送状态
 *
 * @author sh.pei <sh.pei@idiaoyan.com>
 * @version v1.0
 * @date 2021/8/6 11:44
 */
@Getter
@AllArgsConstructor
public enum MqSendStatusEnum implements CommonEnum {

    /**
     * 待投递到redis
     */
    TO_ADD_REDIS(1, "待投递到redis"),

    /**
     * 入redis队列,待发送
     */
    TO_SEND(2, "入redis队列,待发送"),

    /**
     * 加入redis后但到时间数据库状态未修改
     */
    REDIS_FAIL(3, "加入redis后但到时间数据库状态未修改"),

    /**
     * 发送失败待重试
     */
    SEND_FAIL(4, "发送失败待重试"),

    /**
     * 彻底失败
     */
    UTTER_FAIL(5, "彻底失败"),

    /**
     * 发送成功 消息已发送成功
     */
    SEND_SUCCESS(6, "发送成功");


    private final int index;

    private final String name;
}
